package com.yuyou.hxyy.service.api.service;

import com.yuyou.hxyy.service.api.bean.Pagination;
import com.yuyou.hxyy.service.api.entity.DataImport;
import com.yuyou.hxyy.service.api.entity.Word;
import com.yuyou.hxyy.service.api.vo.req.WordExcel;
import com.yuyou.hxyy.service.api.vo.resp.WordVo;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.util.List;

public interface IWordService {
    int deleteByPrimaryKey(Long wordId);

    int insert(Word record);

    Word selectByPrimaryKey(Long wordId);

    int updateByPrimaryKeySelective(Word record);

    void insertWord(String en , String voice , String cn , Long wordRepoId , Long wordUnitId , Long userId );

    void updateWord(Long id , String en , String voice , String cn , Long userId);

    Word findByRepoUnitEn(Long repoId , Long unitId , String en);

    void deleteByIds(String ids);

    int findWordCount(Pagination<WordVo> queryPgn);

    List<WordVo> findWordPage(Pagination<WordVo> queryPgn);

    DataImport saveWordImport(List<WordExcel> wordExcelList);

    XSSFWorkbook failedInfoOfWordImport(List<WordExcel> wordExcelList);

    boolean dealWordUrl(Word word);

    void updateByEn(String en);

    void dealWordVideo();
}